﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SelfHosting.Handlers.Compression
{
    /// <summary>
    /// Compresseur
    /// </summary>
    public abstract class Compressor : ICompressor
    {
        /// <summary>
        /// Obtient le codage
        /// </summary>
        public abstract string EncodingType { get; }

        /// <summary>
        /// Créer le stream compressé
        /// </summary>
        /// <param name="output">Le stream à compresser</param>
        /// <returns>Le stream compressé</returns>
        public abstract Stream CreateCompressionStream(Stream output);

        /// <summary>
        /// Créer le stream décompressé
        /// </summary>
        /// <param name="input">Le stream à décompresser</param>
        /// <returns>Le stream décompressé</returns>
        public abstract Stream CreateDecompressionStream(Stream input);
    }    
}
